package org.dromara.tearoom.domain.vo;

import cn.idev.excel.annotation.ExcelIgnoreUnannotated;
import cn.idev.excel.annotation.ExcelProperty;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import org.dromara.common.excel.annotation.ExcelDictFormat;
import org.dromara.common.excel.convert.ExcelDictConvert;
import org.dromara.tearoom.domain.TerUser;

import java.io.Serial;
import java.io.Serializable;
import java.util.Date;


/**
 * 用户视图对象 ter_user
 *
 * @author xch
 * @date 2025-03-29
 */
@Data
@ExcelIgnoreUnannotated
@AutoMapper(target = TerUser.class)
public class TerUserVo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 用户系统id
     */
    @ExcelProperty(value = "用户系统id")
    private Long id;

    /**
     * 开发平台id
     */
    @ExcelProperty(value = "开发平台id")
    private String openId;

    /**
     * 微信昵称
     */
    @ExcelProperty(value = "微信昵称")
    private String nickname;

    /**
     * 微信号
     */
    @ExcelProperty(value = "微信号")
    private String wechatNo;

    /**
     * 微信头像URL
     */
    @ExcelProperty(value = "微信头像URL")
    private String avatar;

    /**
     * 手机号（需用户授权后解密存储）
     */
    @ExcelProperty(value = "手机号", converter = ExcelDictConvert.class)
    @ExcelDictFormat(readConverterExp = "需=用户授权后解密存储")
    private String mobile;

    @ExcelProperty(value = "jwttoken")
    private String jwtToken;
    /**
     * 用户最后登陆时间
     */
    @ExcelProperty(value = "用户最后登陆时间")
    private Date lastLoginAt;

    @ExcelProperty(value = "返回code")
    private String returnCode;

    @ExcelProperty(value = "返回信息")
    private String returnMsg;

    /**
     * 创建时间
     */
    private Date createTime;
    /**
     * 状态
     */
    private Integer status;
}
